#include <iostream>
#include <deque>
#include "global.hpp"

int main()
{
    std::deque<int> q;
    q.push_back(1); //尾插
    q.push_front(2);//头插
    q.pop_back();//尾删
    q.pop_front();//头删

    std::cout<<q[0]<<std::endl;
    std::cout<<q.at(0)<<std::endl; //越界会抛出异常
    Print(q);
    return 0;
}